package com.bgn.baseframe.utils.jsontool;

import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;

/**
 * 类描述：
 * 创建人：wl
 * 创建时间：2017/6/13 16:28
 */
public class ParameterizedTypeImpl implements ParameterizedType {
    private final Class raw;
    private final Type[] args;
    public ParameterizedTypeImpl(Class raw, Type[] args) {
        this.raw = raw;
        this.args = args != null ? args : new Type[0];
    }
    @Override
    public Type[] getActualTypeArguments() {
        return args;
    }
    @Override
    public Type getRawType() {
        return raw;
    }
    @Override
    public Type getOwnerType() {return null;}
}
